<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="common/header.jsp" %>

	<div class="row">
      <div class="col-md-12 col-sm-12 col-xs-12">
        <div class="x_panel">
          <div class="x_content">

            <form action="${pageContext.request.contextPath }/devApp/appInfoAdd" method="post" enctype="multipart/form-data"
            class="form-horizontal form-label-left" novalidate>
              <span class="section">新增APP基础信息</span>

              <div class="item form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="softwarename">软件名称<span class="required">*</span>
                </label>
                <div class="col-md-6 col-sm-6 col-xs-12">
                  <input id="softwarename" name="softwarename" class="form-control col-md-7 col-xs-12" data-validate-length-range="6" data-validate-words="2" name="name" placeholder="both name(s) e.g Jon Doe" required="required" type="text">
                </div>
              </div>
              <div class="item form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="apkname">APK名称<span class="required">*</span>
                </label>
                <div class="col-md-6 col-sm-6 col-xs-12">
                  <input onblur="checkApkname(this)" type="text" id="apkname" name="apkname" required="required" class="form-control col-md-7 col-xs-12">
                  <span id="apknameInfo"></span>
                </div>
              </div>
              <div class="item form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="supportrom">支持ROM<span class="required">*</span>
                </label>
                <div class="col-md-6 col-sm-6 col-xs-12">
                  <input type="text" id="supportrom" name="supportrom" data-validate-linked="email" required="required" class="form-control col-md-7 col-xs-12">
                </div>
              </div>
              <div class="item form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="interfacelanguage">页面语言 <span class="required">*</span>
                </label>
                <div class="col-md-6 col-sm-6 col-xs-12">
                  <input type="text" id="interfacelanguage" name="interfacelanguage" required="required" data-validate-minmax="10,100" class="form-control col-md-7 col-xs-12">
                </div>
              </div>
              <div class="item form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="softwaresize">软件大小 <span class="required">*</span>
                </label>
                <div class="col-md-6 col-sm-6 col-xs-12">
                  <input type="number" id="softwaresize" name="softwaresize" required="required" placeholder="www.website.com" class="form-control col-md-7 col-xs-12">
                </div>
              </div>
              <div class="item form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="downloads">下载次数 <span class="required">*</span>
                </label>
                <div class="col-md-6 col-sm-6 col-xs-12">
                  <input id="downloads" type="number" name="downloads" data-validate-length-range="5,20" class="optional form-control col-md-7 col-xs-12">
                </div>
              </div>
              <div class="item form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="flatformid">所属平台 <span class="required">*</span>
                </label>
                <div class="col-md-6 col-sm-6 col-xs-12">
                	<select id="flatformid" name="flatformid" class="form-control col-md-7 col-xs-12">
						<option value="">-- 请选择 --</option>
						<c:forEach items="${flatformList }" var="flatform">
							<option <c:if test="${checkMap.flatform==flatform.valueid }">selected='selected'</c:if> value="${flatform.valueid }">${flatform.valuename }</option>
						</c:forEach>
					</select>
                </div>
              </div>
              <div class="item form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="level1">一级分类 <span class="required">*</span>
                </label>
                <div class="col-md-6 col-sm-6 col-xs-12">
	                <select onchange="level1Change(this)" name="categorylevel1" id="level1"   class="form-control col-md-7 col-xs-12">
						<option value="">-- 请选择 --</option>
						<c:forEach items="${level1List }" var="level1">
							<option <c:if test="${checkMap.level1==level1.id }">selected='selected'</c:if> value="${level1.id }">${level1.categoryname }</option>
						</c:forEach>
					</select>
                </div>
              </div>
              <div class="item form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="occupation">二级分类 <span class="required">*</span>
                </label>
                <div class="col-md-6 col-sm-6 col-xs-12">
                	<select onchange="level2Change(this)" name="categorylevel2" id="level2"  class="form-control col-md-7 col-xs-12">
						<option value="">-- 请选择 --</option>
						<c:forEach items="${level2List }" var="level2">
							<option <c:if test="${checkMap.level2==level2.id }">selected='selected'</c:if> value="${level2.id }">${level2.categoryname }</option>
						</c:forEach>
					</select>
                </div>
              </div>
              <div class="item form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="occupation">三级分类 <span class="required">*</span>
                </label>
                <div class="col-md-6 col-sm-6 col-xs-12">
                	<select name="categorylevel3" id="level3" class="form-control col-md-7 col-xs-12">
						<option value="">-- 请选择 --</option>
						<c:forEach items="${level3List }" var="level3">
							<option <c:if test="${checkMap.level3==level3.id }">selected='selected'</c:if> value="${level3.id }">${level3.categoryname }</option>
						</c:forEach>
					</select>
                </div>
              </div>
              <div class="item form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="status">APP状态 <span class="required">*</span>
                </label>
                <div class="col-md-6 col-sm-6 col-xs-12">
                  <input type="hidden" name="status" id="status" value="1">
                  <input readonly="readonly" value="待审核"  type="text"  data-validate-length-range="5,20" class="optional form-control col-md-7 col-xs-12">
                </div>
              </div>
              <div class="item form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="appinfo">应用简介 <span class="required">*</span>
                </label>
                <div class="col-md-6 col-sm-6 col-xs-12">
                  <input id="appinfo" type="text" name="appinfo" data-validate-length-range="5,20" class="optional form-control col-md-7 col-xs-12">
                </div>
              </div>
              <div class="item form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="occupation">LOGO图片<span class="required">*</span>
                </label>
                <div class="col-md-6 col-sm-6 col-xs-12">
                  <input type="file" name="picFile" data-validate-length-range="5,20" class="optional form-control col-md-7 col-xs-12">
                  <span style="color:red">${picInfo }</span>
                </div>
              </div>
              
              
              
              
              
              
              
              
              <div class="ln_solid"></div>
              <div class="form-group">
                <div class="col-md-6 col-md-offset-3">
                  <button type="submit" class="btn btn-primary">新增APP</button>
                  <button id="send" type="submit" class="btn btn-success">Submit</button>
                </div>
              </div>
            </form>
          </div>
        </div>
      </div>
    </div>




<%@include file="common/footer.jsp" %>